import {designBaseApplication} from "plain-micro-application";
import {nav} from "@/micro/nav/nav";
import {publicAssets} from "@/micro/publicAssets";
import {registryBasePages} from "../pages/registryBasePages";

/**
 * 微前端架构模式，由MAIN加载BASE初始化
 * @author  韦胜健
 * @date    2021/5/7 16:56
 */
export default designBaseApplication(async (mainConfig) => {
        console.log('BASE 应用被加载', mainConfig)
        registryBasePages(nav);
        return {
            nav,
            publicAssets,
        }
    },
    (path: string) => __webpack_public_path__ = path)